package pattern.factory;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 长方形
 */
public class Rectangle implements Shape {

    @Override
    public void draw() {
        System.out.println("Inside Rectangle::draw() method.");
    }

    @Override
    public LinkedHashMap<String, Object> getMap(Map<String, Object> map) {
        return new LinkedHashMap<String, Object>(map);
    }
}
